home *** CD-ROM | disk | FTP | other *** search
Text File | 1987-05-07 | 2.5 KB | 86 lines | [TEXT/MPS ] |
- ;***************** File FormatEqu.a ****************************
- ;***************************************************************
- ;
- ; A list of equates used in the SCSI formatting program.
-
- ; Menu Bar resource numbers
-
- AppleM EQU 128
- FileM EQU 129
- EditM EQU 130
- SCSIM EQU 131
-
- ; Dialog box resource numbers
- AboutRN EQU 128
- SelAddrRN EQU 129
- ParamRN EQU 130
- EDefectsRN EQU 131
- AboutItem EQU 1
-
- DialWLen EQU 170 ;lenght of window storage for
- ;dialog box
-
- ; Event Processing Equates
-
- AllEvents EQU $0000FFFF
- EventMask EQU $FFFF
-
- ; Codes used in error dialog box for SCSI Manager traps.
- Reset EQU $A0
- Get EQU $A1
- Select EQU $A2
- Command EQU $A3
- Complete EQU $A4
- Read EQU $A5
- Write EQU $A6
- Install EQU $A7
- Stat EQU $A10
-
- ; Codes used in error dialog box for SCSI commands.
- RezeroUnit EQU 1
- TestUReady EQU 0
- FormatUnit EQU 4
- ModeSelect EQU $15
-
- MaxTicks EQU 108000 ;max number of ticks to wait for
- ;a SCSI command to complete
- MaxAddr EQU 6 ;largest SCSI address
- MaxCylind EQU 2048 ;largest number of cylinders
- MaxHeads EQU 16 ;largest number of heads
- MaxBFI EQU $10000000 ;bigest Bytes From Index value
-
- ; Offsets for input buffer used when inputting disk surface
- ; defect information (relative to the beginning of that record).
- CylBBuff EQU 0 ;offset for cylinder field
- HeadBBuff EQU 4 ;offset for head field
- BFIBBuff EQU 8 ;offset for bytes from index field
-
- ; Offset for each record in output buffer (relative
- ; to the beginning of that record).
- CylOut EQU 0 ;Offset for cylinder
- HeadOut EQU 3 ;Offset for head
- BFIOut EQU 4 ;Offset for byte from index
-
- ; Equates for buffer sizes. Note there are two buffers for
- ; defects, one for input, and another reformated one for output
- ; during the Format Unit command.
- MaxBBs EQU 60 ;Maximum number of defects
- BadBRecLen EQU 16 ;size of each defect record for
- ;input buffer
- MaxBBListLen EQU MaxBBs*BadBRecLen ;length of defect buffer
- ;for input
- MaxBBOutLen EQU (MaxBBs*8)+4 ;length of defect buffer for
- ;output during Format
- ;Unit command
-
- ModeSelBytesOut EQU 22 ;bytes transfered in Mode Select
- ;command
-
- ParamBuffLen EQU 30 ;length of SCSI command
- ;parameter buffer
- CBuffLen EQU 10 ;length of command buffer
- StrBuffLen EQU 256 ;length of string buffers
- CommLenS EQU 6 ;lenght of class 0 commands
- CommLenL EQU 10 ;length of class 1 commands
- PProgLen EQU 30 ;Pseudo program buffer length
-